#ifndef LANDSPRITE_H
#define LANDSPRITE_H
#include<QGraphicsItem>
#include<QObject>
class landSprite:public QObject,public QGraphicsItem
{
    Q_OBJECT
    static QImage landImg;
    const int standardspeed=2;
    int offset,speed;
public:
    const static QImage&landImage;
    landSprite();
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
    QRectF boundingRect() const;
    void advance(int phase);
private slots:
    void onGameBegin();
    void onGameOver();
    void onGameRestart();
};

#endif // LANDSPRITE_H
